<?php
/**
 * Created by : PhpStorm
 * User: 阿城 <479468212@qq.com>
 * Date: 2019/12/27
 * Time: 13:02
 */

namespace app\admin\controller;

use app\admin\controller\Base;
use app\admin\model\AdminUser;
use app\admin\model\AdminUserData;
use app\util\Tools;

class Profile extends Base
{
    /**
     * @OA\Get(
     *   path="/admin/profile/getUserInfo",
     *   tags={"后台用户相关"},
     *   summary="获取用户信息",
     *   @OA\Parameter(ref="#/components/parameters/AppClientVersion"),
     *   @OA\Parameter(ref="#/components/parameters/AppDeviceType"),
     *   @OA\Response(
     *     response=200,
     *     description="Success",
     *     @OA\JsonContent( type="array", @OA\Items(ref="#/components/schemas/response" ) )
     *   ),
     *   @OA\Response(response="500", description="服务器错误"),
     *   security={{"App-Login-Token": ""}}
     * )
     */
    public function getUserInfo() {
        $this->success('成功',$this->userInfo);
    }

}
